package com.itstyle.seckill.topic.desinger.design_cj.decorator;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 19:36
 * @Description:
 */
public class ConcreteDecorator extends Decorator {



    public ConcreteDecorator(Component component)
    {
        super(component);
    }
    @Override
    public void operation()
    {
        super.operation();
        addedFunction();
    }

    public void addedFunction()
    {
        System.out.println("为具体构件角色增加额外的功能addedFunction()");
    }
}
